// import { useGlobalIconFont } from './components/iconfont/helper';

export default defineAppConfig({
  pages: [
    
    // 首页
    "pages/Home/index",
    // 官方发布模块
    "pages/OfficialRelease/index",
    "pages/OfficialRelease/components/OfficialReleaseDetail/index",
    // 政策法规模块
    "pages/PolicieRegula/index",
    "pages/PolicieRegula/components/RegulationsInterpreteDetail/index",
    // 风险查询模块
    "pages/RiskQuery/index",
    // 风险详情
    "pages/RiskQuery/components/RiskQueryDetail/index",
    // ...
    "pages/Announcement/index",
    "pages/User/index",
    "pages/User/components/OperationGuide/index",
    "pages/User/components/AccountManagement/index",
    "pages/User/components/AccountManagement/components/EditPhone/index",
    "pages/User/components/AccountManagement/components/EditLicenseNumber/index",
    "pages/User/components/AccountManagement/components/EditPassword/index",
    "pages/User/components/MemberCenter/index",
    "pages/User/components/BusinessFiling/index",
    "pages/User/components/HelpCenter/index",
    "pages/User/components/CommonProblem/index",
    "pages/User/components/CommonProblem/components/ProblemDetail/index",
    "pages/Auth/Singin/index",
    "pages/Auth/Register/index",
    "pages/Auth/PrivacyPolicy/index",
    "pages/Auth/UserServiceAgreement/index",
    // 日填报
    "pages/IntelFilling/index",
    "pages/IntelFilling/components/DayReport/index",
    "pages/IntelFilling/components/DayReport/components/selfConclusion/index",
    "pages/IntelFilling/components/DayReport/components/checkFill/index",
    "pages/IntelFilling/components/DayReport/components/fillingGuide/index",
    // 周填报
    "pages/IntelFilling/components/WeekReport/index",
    "pages/IntelFilling/components/WeekReport/components/FillingGuide/index",
    "pages/IntelFilling/components/WeekReport/components/LetterOfCommitment/index",
    "pages/IntelFilling/components/WeekReport/components/CheckAndFillIn/index",
    "pages/IntelFilling/components/WeekReport/components/SelfTestConclusion/index",
  ],
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  tabBar: {
    color: "#555555", // HexColor（十六进制颜色值）	是 tab 上的文字默认颜色，仅支持十六进制颜色
    selectedColor: "#555555", // HexColor（十六进制颜色值）	是 tab 上的文字选中时的颜色，仅支持十六进制颜色
    backgroundColor: "#ffffff", // HexColor（十六进制颜色值）	是 tab 的背景色，仅支持十六进制颜色
    list: [
      {
        pagePath: "pages/Home/index", // 页面路径，必须在 pages 中先定义
        text: "首页", // tab 上按钮文字
        iconPath: "assets/images/tabBarImgs/home.png", // 图片路径，icon 大小限制为 40kb，建议尺寸为 81px * 81px，不支持网络图片。当 position 为 top 时，不显示 icon。
        selectedIconPath: "assets/images/tabBarImgs/home-selected.png", // 选中时的图片路径，icon 大小限制为 40kb，建议尺寸为 81px * 81px，不支持网络图片。当 position 为 top 时，不显示 icon。
      },
      {
        pagePath: "pages/IntelFilling/index",
        text: "快速填报",
        iconPath: "assets/images/tabBarImgs/fill.png",
        selectedIconPath: "assets/images/tabBarImgs/fill-selected.png",
      },
      {
        pagePath: "pages/User/index",
        text: "我的",
        iconPath: "assets/images/tabBarImgs/user.png",
        selectedIconPath: "assets/images/tabBarImgs/user-selected.png",
      },
    ],
  },
  // 修改 symbol_url 配置后执行：
  // npx iconfont-taro
  usingComponents: Object.assign({
    iconfont: `components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
  }),
});
